import 'package:healthy_station_flutter/generated/json/base/json_field.dart';
import 'package:healthy_station_flutter/generated/json/pre_info_entity.g.dart';
import 'dart:convert';
export 'package:healthy_station_flutter/generated/json/pre_info_entity.g.dart';

@JsonSerializable()
class PreInfoEntity {
	//账单流水号
	String? billId = '';
	//账单类型
	String? billType = '';
	//药品ID
	String? medId = '';
	//药品名称
	String? medName = '';
	//药品规格
	String? medSpec = '';
	//单价
	String? price = '';
	//数量
	String? num = '';
	//配药单位
	String? unit = '';
	//总金额 (分)
	String? amount = '';
	//给药方式
	String? drugWay = '';
	//频次
	String? usage = '';
	//用量
	String? dosage = '';
	//用量单位
	String? dosageUnit = '';
	//嘱托
	String? demand = '';
	//开方时间
	String? submitDate = '';

	PreInfoEntity();

	factory PreInfoEntity.fromJson(Map<String, dynamic> json) => $PreInfoEntityFromJson(json);

	Map<String, dynamic> toJson() => $PreInfoEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}